package com.jihox.abookpro.util;

import android.graphics.PointF;

public class CalDis{
	public static float calDis(float x1,float y1,float x2,float y2){
		return (float) Math.sqrt(Math.pow(x1-x2,2)+Math.pow(y1-y2,2));
	}
	public static float calDis(PointF point1,PointF point2){
		return (float) Math.sqrt(Math.pow(point1.x-point2.x,2)+Math.pow(point1.y-point2.y,2));
	}
	public static float fontSizeTomm(float size){
		return size*25.4f/72;
	}
}
